import request from '@/utils/request'

// 查询废水治理设施列表
export function listWater(query) {
  return request({
    url: '/facilities/water/list',
    method: 'get',
    params: query
  })
}

// 查询废水治理设施详细
export function getWater(wtfId) {
  return request({
    url: '/facilities/water/' + wtfId,
    method: 'get'
  })
}

// 新增废水治理设施
export function addWater(data) {
  return request({
    url: '/facilities/water',
    method: 'post',
    data: data
  })
}

// 修改废水治理设施
export function updateWater(data) {
  return request({
    url: '/facilities/water',
    method: 'put',
    data: data
  })
}

// 删除废水治理设施
export function delWater(wtfId) {
  return request({
    url: '/facilities/water/' + wtfId,
    method: 'delete'
  })
}

// 导出废水治理设施
export function exportWater(query) {
  return request({
    url: '/facilities/water/export',
    method: 'get',
    params: query
  })
}